﻿using System;
using Microsoft.Practices.Prism.Modularity;
using System.ComponentModel.Composition;
using Microsoft.Practices.Prism.MefExtensions.Modularity;
using BizControl.Presentation.Infrastructure.Constants;
using Microsoft.Practices.Prism.Regions;

namespace BizControl.Presentation.PersonMarkEditCompositeModule
{
  [ModuleExport(typeof(PersonMarkEditCompositeModule))]
  public class PersonMarkEditCompositeModule : IModule
  {
    [Import]
    private IRegionManager _regionManager;

    #region IModule Members

    public void Initialize()
    {
      _regionManager.RegisterViewWithRegion(ShellRegionNames.MainContentRegion, typeof(Views.PersonMarkEditCompositeView));
      _regionManager.RegisterViewWithRegion(RegionNames.PersonMarkEditMainRegion, typeof(BizControl.Presentation.PersonMarkEditModule.Views.PersonMarkEditView));
    }

    #endregion
  }
}
